<{include file="db:`$mydirname`_header.html"}>


<form action="<{$myurl}>/index.php?page=submit" name="postform" method="post" style="padding:2px;" >

<table border="1" style="padding:6px;border-collapse:collapse;empty-cells:show; border-color:#999;margin-bottom:16px;">

  <tr> 
    <th nowrap="nowrap" colspan="2"> 
      <{$smarty.const._MD_FD_SUBMIT_DATA}>
    </th>
  </tr>

<{* <!---- If you use the XCAT's category, delete comment out. It is necessary to be installed XCAT. ---->
  <{if $cattree}>
    <tr>
      <td class="head" nowrap="nowrap">
        <{$smarty.const._MD_FD_CATEGORY}>
      </td>
      <td class="<{cycle values='odd,even'}>" >
        <select name="cat_id">
          <option value="0"><{$smarty.const._MD_FD_NO_CATEGORY}></option>
          <{xcatsvc_catselect tree=$cattree selectedValue=0}>
        </select>
      </td>
    </tr>
  <{/if}>
*}>

  <{foreach item=f from=$fields key=count name=i}>
    <tr>
      <td class="head" nowrap="nowrap">
      	<{$f.fname}>
      	<{if $f.visible==1}>&nbsp;*<{/if}>
      </td>
      <td class="<{cycle values='odd,even'}>" >
        <input type="text" name="<{$mydirname}>_field<{$f.fid}>" id="<{$mydirname}>_field<{$f.fid}>" size="50" maxlength="255" value="" />
      </td>
    </tr>
  <{/foreach}>

  <tr>
    <td class="head" valign="top">
      <{$smarty.const._MD_FD_SUBMITTER}>
    </td>
    <td class="odd">
        <{$uname}>
    </td>
  </tr>

  <tr class="foot">
    <td>&nbsp;</td>
    <td>
      <input type="submit" name="submit" class="button" value="<{$smarty.const._SUBMIT}>" />
    </td>
  </tr>

</table>
* : <{$smarty.const._MD_FD_VISIBLE_IN_LIST}>

<{$gticket}>
</form>

<{include file="db:`$mydirname`_footer.html"}>
